<?php

class MyLinkPager extends CLinkPager
{
	var $firstPageLabel = '|&lt;';
	var $prevPageLabel = '&lt;';
	var $nextPageLabel = '&gt;';
	var $lastPageLabel = '&gt;|';
	var $header = '';

	var $itemOptions = array(
		'class' => 'cm-ajax',
		'rev' => 'pagination_contents',
		'name' => 'pagination',
	);

	protected function createPageButton($label,$page,$class,$hidden,$selected)
	{
		if($hidden || $selected)
			$class.=' '.($hidden ? self::CSS_HIDDEN_PAGE : self::CSS_SELECTED_PAGE);

		$itemOptions = array_merge($this->itemOptions, array(
			'rel' => $label,
		));
		return '<li class="'.$class.'">'.CHtml::link($label,$this->createPageUrl($page), $itemOptions).'</li>';
	}
}